/**
 * Created by hms on 2020-11-02.
 */
import { ROAST_CONFIG } from '../config.js';

export default{
    getDepartList:function(data){
		let timestamp=Date.parse(new Date());
		data.random_id=timestamp;
        return axios.get(ROAST_CONFIG.API_URL+'/departlist',{ params : data});
    },
    getDepartData:function(data){
        return axios.post(ROAST_CONFIG.API_URL+'/getDepartmentData?wxapp_api_token='+data.wxapp_api_token+'&code='+data.code,{},{
            headers: {'Content-Type': 'application/json'}
        });
    }
}
